package com.foreknow.demo4;

import java.util.Scanner;

public class ArrayDemo4 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String arrayString = scan.next();
        int[] array = {1,2,3};
//        int[] array = Integer.parseInt(arrayString.split(","));
        ArrayDemo4.getSort(array);
    }
    public static int[] getSort(int[] array){
        int[] sortArray = array;
        for (int i = 1; i < sortArray.length;i++){
            for (int j = 0; i <sortArray.length-i;j++){
                if (sortArray[j] > sortArray[j+1]){
                    int temp = 0;
                    temp = sortArray[j];
                    sortArray[j] = sortArray[j+1];
                    sortArray[j+1] = temp;
                }
            }
        }
        return sortArray;
    }
}
